package core.domain.messages;

import javax.xml.bind.annotation.XmlRootElement;

import core.domain.Part;

@XmlRootElement
public class GetPartMessage extends AbstractMessage {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5453333190922357125L;

	protected GetPartMessage() {
		super(MessageType.GETPART);
	}

	/**
	 * returned part in the reply message has the payload. 
	 * request 
	 */
	private Part part;
	
	public GetPartMessage(Part part){
		this();
		this.part = part;
	}
	
	/**
	 * check if returned part has payload. request have it null
	 */
	public Part getPart() {
		return part;
	}
	
	public void setPart(Part part) {
		this.part = part;
	}
	
	
}
